import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const SUPPLY: AppRouteRecordRaw = {
  path: '/storeroom',
  name: 'storeroom',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '库房',
    icon: 'icon-archive',
    requiresAuth: true,
    order: 9,
  },
  children: [
    {
      path: 'inventory',
      name: 'inventory',
      component: () => import('@/views/storeroom/inventory/index.vue'),
      meta: {
        locale: '成品酒管理',
        requiresAuth: true,
        roles: ['inventory','admin'],
      },
    },
    {
      path: 'baocai',
      name: 'baocai',
      component: () => import('@/views/storeroom/outbaocai/index.vue'),
      meta: {
        locale: '包材辅料管理',
        requiresAuth: true,
        roles: ['inventory','admin'],
      },
    },
  ],
};

export default SUPPLY;
